const Router = require("koa-router");
const goodsController = require("../controller/shopping");

let shopping = new Router();
// 获取数据
shopping.post("/getShopping", goodsController.getShoppingData);
// 插入数据
shopping.post("/add", goodsController.addShopping);
// 删除数据
shopping.post("/batchDelete", goodsController.batchDeteleShopping);

module.exports = shopping;
